import type { App } from 'vue'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia()
export const setupPinia = (app: App) => {
  app.use(pinia)
}
pinia.use(piniaPluginPersistedstate)
export * from './modules/auth'
export * from './modules/app'
export * from './modules/user'
export * from './modules/setting'
export * from './modules/tagsView'
export { pinia }
